package com.sean.designpatterns.create.abstractfactory;

public class ShapeFactory extends AbstractFactory {
    @Override
    Shape getShape(String name) {
        if (name.equals("Circle")) {
            return new Circle();
        } else if (name.equals("Square")) {
            return new Square();
        } else if (name.equals("Rectangle")) {
            return new Rectangle();
        } else {
            return null;
        }
    }

    @Override
    Color getColor(String name) {
        return null;
    }
}
